    <div class="content-box"><!-- Start Content Box -->
        <div class="content-box-header">
        <h3>Banner Quảng Cáo</h3>
        <div class="clear"></div>
    </div> <!-- End .content-box-top -->

        <div class="content-box-content">

        <div id="tab1" class="tab-content default-tab" style="display: block;">
            <h3>Thay đổi thứ tự hiển thị banner ở trang chủ</h3>
            <p>Kéo thả các banner để thay đổi thứ tự hiển thị</p>
            <div id="layout">
                <div class="top drop_me">
<?php
if(isset ($top) == TRUE && count($top) > 0) :
    foreach($top as $obj) :
?>
                <img position="top" class="sortable_item" src="<?php echo Url::site('assets/upload/banner/' . $obj->image) ?>" alt="" id="top_<?php echo $obj->id ?>" width="100" />
<?php
    endforeach;
endif;
?>
                </div>

                <div class="left drop_me">
<?php
if(isset ($left) == TRUE && count($left) > 0) :
    foreach($left as $obj) :
?>
                <img position="left" class="sortable_item" src="<?php echo Url::site('assets/upload/banner/' . $obj->image) ?>" alt="" id="left_<?php echo $obj->id ?>" width="100" />
<?php
    endforeach;
endif;
?>
                </div>
                <div class="right drop_me">
<?php
if(isset ($right) == TRUE && count($right) > 0) :
    foreach($right as $obj) :
?>
                <img class="sortable_item" src="<?php echo Url::site('assets/upload/banner/' . $obj->image) ?>" alt="" id="right_<?php echo $obj->id ?>" width="100" />
<?php
    endforeach;
endif;
?>
                </div>
                <div class="clear"></div>

                <div class="bottom drop_me">
<?php
if(isset ($bottom) == TRUE && count($bottom) > 0) :
    foreach($bottom as $obj) :
?>
                <img class="sortable_item" src="<?php echo Url::site('assets/upload/banner/' . $obj->image) ?>" alt="" id="bottom_<?php echo $obj->id ?>" width="100" />
<?php
    endforeach;
endif;
?>
                </div>
            </div>
        </div> <!-- End #tab1 -->
    </div> <!-- End .content-box-content -->

</div>

<script type="text/javascript">
$(function(){
    Sidebar.setActive(Sidebar.menu.ads, 2);

    $('div.drop_me').sortable({
        update: function(event, ui) {
            var a = $(this).sortable('serialize').toString();
            position = $(ui.item).attr('position');
            a += '&position=' + position;

            url = '<?php echo Url::site('admin/ads/update_order') ?>';
            $.post(url, a);
        }
    });
});
</script>